OPC Studio User's Guide and Reference
Python Packages
Client and Subscriber Development > Development Fundamentals > Development Product Parts > Component Packages > Python Packages
In This Topic
Python packages are for development in Python. Use NuGet Packages for development on .NET 6+ and .NET Framework platforms. Use the Setup Program when developing for COM or Excel platform, or in PowerShell.

The Python language and ecosystem provides the ability to produce and consume packages. OPC Data Client Python packages are hosted on the Python Package Index (https://pypi.org/ ). The Python Package Index is the central package repository used by most package authors and consumers.

For more details about OPC Data Client Python packages and instructions on how to use them, see:

Installing Python Packages

In order to install a OPC Data Client Python package into your Python environment:

  1. Open a command prompt.
  2. Install and update pip.
  3. Type the following: pip install opclabs_quickopc. This adds OPC Data Client to your Python environment.
    The above command actually installs the very latest version of the OPC Data Client Python package. If you want to be sure that you referencing a package for OPC Data Client 2024.1, use the pip install command with the version specifier (OPC Data Client 2024.1 uses version specifiers that start with 5.80).
  4. If you need to add more packages (see List of Component Packages), repeat the pip install command, giving it the package name for Python as an argument.

Local Copy

The OPC Data Client Python packages are available online, from https://pypi.org/ .

In addition to this, the Setup program also installs a local copy of OPC Data Client Python packages, into the PythonPackages directory under the product installation folder. The structure of this directory is such that it can be directly used a Python local repository, e.g. for off-line development and building purposes. All you need to do is to add this directory using pip as an extra package index, or install the packages directly using their full path in the local file system.

Limitations

Note that Python packages are primarily a tool for resolving development-time dependencies. The amount of functionality that you get through OPC Data Client Python packages is smaller than what OPC Data Client can actually do for you. If you want a full coverage of the features, you would be better off installing the product using the Setup program. Further below you will find a list of differences between the two distribution forms.

The bulk of this documentation assumes that you have installed the product using the Setup program. You need to keep the limited scope of Python packages in mind when interpreting the documentation.

What is included in the Python packages:

What is only available from the Setup program or elsewhere (e.g. online):

 

See Also